<template>
  <system-index @to-main-page="toMainPage">
    <search-goods @to-page="toPage"></search-goods>
  </system-index>
</template>

<script>
  import SystemIndex from 'views/systemIndex';
  import SearchGoods from 'views/searchGoods';

  import mpMixins from '../mpMixins';

  export default {
    mixins: [mpMixins],

    data() {
      return {};
    },

    methods: {
      toPage(url) {
        location.href = url;
      }
    },

    components: {
      SystemIndex,
      SearchGoods
    }
  };

</script>
